﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace FeatureModelTool.Windows
{
    /// <summary>
    /// Interaction logic for ClosingWarningDialog.xaml
    /// </summary>
    public partial class ClosingWarningDialog : Window
    {
        public bool ToSave { get; protected set; }
        public bool ToClose { get; protected set; }

        public ClosingWarningDialog()
        {
            InitializeComponent();

            ToClose = false;
            ToSave = false;
        }

        private void NotSaveButton_Click(object sender, RoutedEventArgs e)
        {
            ToClose = true;
            ToSave = false;
            this.Close();
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            ToClose = false;
            this.Close();
        }

        private void SaveButton_Click(object sender, RoutedEventArgs e)
        {
            ToSave = true;
            ToClose = true;
            this.Close();
        }
    }
}
